﻿@model List<MovieTheaterApp.DataModels.Movie>

<div class="jumbotron">Movie Review Central: List View<br />
    <a class="btn btn-primary btn-sm pull-right" href="/Home/AddMovie">Add Movie</a>    
</div>

<table class="table-bordered table-condensed">
    <tr>
        <th>Movie Poster</th>
        <th>Movie Title</th>
        <th>Movie Rating</th>
    </tr>
    @foreach (var m in Model)
    {
        <tr onclick="location.href='/Home/Details/@m.Id'">
            <td><img src="@m.Poster" style="width:100px; height:100px"/></td>
            <td>@m.Title</td>
            <td>@m.Rating</td>
        </tr>
    }
</table>